import pymysql

def con():
    db = pymysql.connect(host='39.108.91.55', user='root', passwd='123456', db='lrj', port=3306)
    cursor = db.cursor()
    sql = '''create table main 
    (name varchar(50) not null,age int not null,phone varchar(50) not null,primary key(name,age))'''
    cursor.execute(sql)
    db.commit()

con()